/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.supinfo.youfood.service;

import com.supinfo.youfood.dao.Commande_MenuDao;
import com.supinfo.youfood.entity.Commande;
import com.supinfo.youfood.entity.Commande_Menu;
import com.supinfo.youfood.entity.Menu;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author Michael
 */
@Stateless
public class Commande_MenuService {
    
    @EJB
    private Commande_MenuDao commande_menu;
    
    public Commande_Menu addCommandeMenu(Menu m, Commande c) {
        return commande_menu.addCommande_Menu(c, m);
    }
    
    public List<Commande_Menu> getCommandesAF(List<Commande_Menu> lcm) {
        return commande_menu.getCommandesAF(lcm);
    }
    
    public List<Commande_Menu> getCommandesEnCours(List<Commande_Menu> lcm) {
        return commande_menu.getCommandesEnCours(lcm);
    }
    
    public List<Commande_Menu> getCommandesFini(List<Commande_Menu> lcm) {
        return commande_menu.getCommandesFini(lcm);
    }
    
    public Commande_Menu findCommande_MenuById(Long id) {
        return commande_menu.findCommande_MenuById(id);
    }
    
    public void updateCommande_Menu(Commande_Menu cm) {
        commande_menu.updateCommande_Menu(cm);
    }
}
